Added automotive provider for nl_NL #1548
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this change?
Added an automotive provider for Dutch (
nl_NL
), which generates license plates for cars, motorbikes and other road vehicles according to https://en.wikipedia.org/wiki/Vehicle_registration_plates_of_the_Netherlands (format 6 through 10, covering 1999 to present).What was wrong
faker
dit not include license plate formats for thenl_NL
locale.How this fixes it
nl_NL
folder infaker/providers/automotive/
__init__.py
file in thenl_NL
folder, with the same format asfaker/providers/date_time/es_ES/__init__.py
license_plate_motorbike()
), cars and other vehicles (license_plate_motorbike()
), and overridelicense_plate()
to generate 10% motorbike plates and 90% other road vehicle plates (according to official CBS statistics approx. 10% of road vehicles are motorbikes)license_plate()
,license_plate_motorbike()
andlicense_plate_car()